package xm.chengdu.com.beijing_211;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.github.czy1121.view.RoundButton;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 回充选择
 */
public class HuiChongActivity extends AppCompatActivity {

    @BindView(R.id.img_back)
    RelativeLayout imgBack;
    @BindView(R.id.textView4)
    TextView textView4;
    @BindView(R.id.home)
    RoundButton home;
    @BindView(R.id.stop)
    RoundButton stop;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hui_chong);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.img_back, R.id.home, R.id.stop})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_back:
                finish();
                break;
            case R.id.home:
//                String gongzuomoshi;
//                if (!Content.isConn) {
//                    Toast.makeText(HuiChongActivity.this, "Please connect to Bluetooth first！", Toast.LENGTH_SHORT).show();
//                    return;
//                }
//
//                    gongzuomoshi = FaSong.gongzuomoshi("01");
//
//                MyEvent events4 = new MyEvent();
//                events4.setType("message");
//                events4.setContent(gongzuomoshi);
//                EventBus.getDefault().post(events4);

                break;
            case R.id.stop:

                break;
        }
    }
}
